<?php
/**
 * Created by 老吴.
 * UserMsg:砥砺前行，扬帆起航
 * email:cwwx0128@qq.com
 * QQ:1113249273
 * QQ群:925283872
 * 微信:cww0128
 * Date: 2021/4/29
 * Time: 17:14
 */

namespace app\api\controller;


use app\common\controller\Api;
use think\Db;

class Ibanner extends Api
{
    protected $noNeedLogin = ['banner'];
    protected $noNeedRight = '*';

    public function banner()
    {
        $this->success('success', \app\admin\model\Ibanner::where('switch', 1)->order('weigh desc')->select());
    }
}